<?php

require_once '/../Modele/Vote.php';


/**
 * @access public
 * @author Joana
 * @package Mapping_Dead.Contr?leur
 */
class Vote_controleur {
	/**
	 * @AssociationType Mapping Dead.Vue.Vote_vue
	 * @AssociationMultiplicity 1
	 */
	public $utilise;

	/**
	 * @access public
	 * @param int idPersonnage
	 * @param int idEpisode
	 * @param String description
	 * @ParamType idPersonnage int
	 * @ParamType idEpisode int
	 * @ParamType description String
	 */
	public function proposerFichePersonnage($idPersonnage, $idEpisode, $description) {
		// Not yet implemented
	}

	/**
	 * @access public
	 * @param int vote
	 * @param int idVote
	 * @ParamType vote int
	 * @ParamType idVote int
	 */
	public function voteFichePersonnage($vote, $idVote) {
		// Not yet implemented
	}

	public static function afficherListeVote() {
		$vote = new Vote;
		return $vote->afficherListeVote();
	}

	/**
	 * @access public
	 * @param int idVote
	 * @ParamType idVote int
	 */
	public function confirmeVote($idVote,$idUser,$resultatVote) {
		$vote = new Vote;
		return $vote->confirmeVote($idVote,$idUser,$resultatVote);
	}

	public function pour($idVote,$nbPour) {
		$vote = new Vote;
		return $vote->pour($idVote,$nbPour);
	}

	public function contre($idVote,$nbContre) {
		$vote = new Vote;
		return $vote->contre($idVote,$nbContre);
	}

	public static function existeVote($idUser, $idProposition) {
		$vote = new Vote;
		return $vote->existeVote($idUser, $idProposition);
	}
}
?>